import {
	localeProps
} from '@form-create/designer/src/utils';

const label = '间距';
const name = 'space';

export default {
	menu: 'shop',
	icon: 'icon-space',
	label,
	name,
	rule() {
		return {
			type: 'div',
			wrap: {
				show: false
			},
			native: true,
			style: {
				width: '100%',
				height: '20px',
			},
			children: []
		};
	},
	props(_, {
		t
	}) {
		return [{
				type: 'object',
				field: 'formCreateStyle',
				native: true,
				props: {
					rule: localeProps(t, name + '.props', [{
						type: 'input',
						field: 'height',
						title: 'height',
					}, ])
				}
			}

		];
	}
};
